/**
 * 
 */
package com.nc.delivery_project.client.request;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.CountryService;
import com.nc.delivery_project.shared.proxy.CountryProxy;
import com.nc.delivery_project.shared.servicelocator.CountryServiceLocator;

/**
 * @author NataG
 *
 */
@Service(value = CountryService.class, locator = CountryServiceLocator.class)

public interface CountryRequest extends RequestContext{
	
	 Request<Integer> create(CountryProxy country);

	 Request<List<CountryProxy>> read();

	 Request<CountryProxy> read(int countryId);

	 Request<Void> update(CountryProxy country);

	 Request<Void> delete(int countryId);
	 
	 //// добавить ??? Request<List<StateProvinceProxy>> loadCountryStateProvince(int countryId);
	    


}
